#pragma once
#include "Screen.h"
#include "CSwscale.h"

class MainServer
{
public:
	MainServer();
	~MainServer();
	void run();
	void saveYUV420(const char * srcSlice[], const int srcStride[], int h);
private:
	CSwscale *m_rgb2yuv;
	Screen *m_screen;

	AVPixelFormat m_src_pixfmt;
	AVPixelFormat m_dst_pixfmt;
	int m_w;
	int m_h;
};

